cmake_minimum_required(VERSION 3.16)

project(Debugging LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}/Library)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}/Library)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}/Runtime)

set(PROJECT_HEADERS
  debugging_global.h
  Display.h
  Debugging.h
  Logger.h
)

set(PROJECT_SOURCES
  Display.cpp
  Debugging.cpp
  Logger.cpp
)

install(FILES ${PROJECT_HEADERS} DESTINATION Includes/${PROJECT_NAME}/)

add_library(${PROJECT_NAME} SHARED ${PROJECT_HEADERS} ${PROJECT_SOURCES})

target_compile_definitions(${PROJECT_NAME} PRIVATE DEBUGGING_LIBRARY)
